<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点赞</title>
</head>
<body>
    
</body>
<script>
    var arr=['20210801','20210802','20210804','20210806','20211101']
    arr.forEach((v)=>{
        if(Number(v[4])>0){
         v=   v.slice(4)
        }
        if(Number(v[4]) <1){
          v=  v.slice(5)

        }
            console.log(v)

    })
    console.log(arr)
    var str="?123243"
    console.log(str.slice(1))
    var s="baidu.com?custNo"
    var data="12222"
    var ss=s+`=${data}`
    console.log(ss)
</script>
</html>